# -*- coding: utf-8 -*-
# import requests


#url = "http://192.168.10.241:7100/system/departments"

#files = {"deptName": (None, "10008"), "deptCode": (None, "D10005"), "isRoot": (None, "1"), "seq": (None, "2")}

#headers = {'Content-type': 'application/form-data'}

#dict = {'files': {"deptName": [None, "10008"], "deptCode": [None, "D10005"], "isRoot": [None, "1"], "seq": [None, "2"]}}

#res = requests.post(url, files=files)

#res = requests.request(url=url, method="POST", **dict)

# print 'status_code: %s' % res.status_code
# print 'request.body: %s' % res.request.body
# print 'request.headers: %s' % res.request.headers
# # print 'response: %s' % res.content
#
#
#
#
# import random
# import chardet
#
# #"""用于随机生成汉字"""
#
# status = 0
# for i in range(1, 15):
#     str2 = ""
#     try:
#         for j in range(0, 83):
#             head = random.randint(0xB0, 0xCF)
#             body = random.randint(0xA, 0xF)
#             tail = random.randint(0, 0xF)
#             val = (head << 8) | (body << 4) | tail
#             str1 = "%x" % val
#             str2 += str1.decode('hex').decode('gb2312').encode("utf-8")
#             print str2
#     except:
#         status = 1
#
#     print "status :   " + str(status)
#     if status == 0:
#         break
# print chardet.detect(str2)


list1 = ['sb','sv','sg']
if 'sv' in list1:
    print